Skip to content

math: rename storage flag real -> f64 (real kept as alias)#9

Merged
NiceAndPeter merged 1 commit into
mainfrom
math-storage-f64-rename
Jun 22, 2026
Merged

math: rename storage flag real -> f64 (real kept as alias)#9
NiceAndPeter merged 1 commit into
mainfrom
math-storage-f64-rename

Conversation

@NiceAndPeter

Copy link
Copy Markdown
Owner

Phase 4b (part 2a) — rename realf64

Introduces f64 as the canonical name for the binary64-backed storage flag, with real kept as a bit-identical deprecated alias for one release. This frees the real name and sets up the sibling f32 (binary32 storage) coming in the next PR. It also reflects what the flag actually is — a storage choice — now that transcendentals gate on snap, not on it.

Behavior-identical

policy_flag real = f64; — same value, so every existing has_flag(P, real) / | real site (27 test/example files + all library internals) compiles unchanged. No functional change.

  • policy_flag.hpp: f64 is the flag; real is the alias.
  • Tests: f64 selects the same double-backed raw as real, and they are the same flag.
  • Docs: policies.md + math.md present f64 as canonical, real as deprecated.

Internal real_raw/store_real renames are deferred to the f32 PR, where the f64/f32 pairing motivates them.

Verified: default 405/405, CORDIC 442/442, FLOAT 396/396.

🤖 Generated with Claude Code

… alias)

Introduce `f64` as the canonical name for the binary64-backed storage flag and
keep `real` as a bit-identical deprecated alias for one release. This frees the
`real` name and sets up the sibling `f32` (binary32 storage) coming next; it also
reflects that the flag is purely a STORAGE choice (transcendentals gate on snap).

- policy_flag.hpp: `f64` is the flag (formerly `real`'s bits, unchanged); `real`
  is now `inline static constexpr policy_flag real = f64;`. Because the value is
  identical, every existing `has_flag(P, real)` / `| real` site — 27 test/example
  files and all library internals — compiles unchanged.
- Tests: f64 selects the same double-backed raw as real and the two are the same
  flag (test_storage_flags.cpp).
- Docs: policies.md + math.md present `f64` as canonical, `real` as deprecated.

Behavior-identical; no internal `real_raw`/storage renames yet — those land with
the f32 storage backend (next PR), where the f64/f32 pairing motivates them.

Verified: default 405/405, CORDIC 442/442, FLOAT 396/396.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@NiceAndPeter NiceAndPeter merged commit 1ba5b69 into main Jun 22, 2026
17 checks passed
@NiceAndPeter NiceAndPeter deleted the math-storage-f64-rename branch June 22, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant